package day4;

/**
 * @author oldliu
 * @since 1.0
 */
public class ForTest1 {
    public static void main(String[] args) {
        for(int i=1;i<=1000;i++){
            System.out.println("第"+i+"次说：day day up!");
        }
    }
}
class Square{
    private int h,w;

    public int getH() {
        return h;
    }

    public void setH(int h) {
        this.h = h;
    }

    public int getW() {
        return w;
    }

    public void setW(int w) {
        this.w = w;
    }
}

class Zheng extends  Square{
    @Override
    public void setH(int h) {
        super.setH(h);
        super.setW(h);
    }

    @Override
    public void setW(int w) {
        super.setW(w);
        super.setH(w);
    }
}